<template>
    <ul>
        <li>id:{{ route.params.id }}</li>
        <li>x:{{ route.params.x }}</li>
        <li>y:{{ route.params.y }}</li>
    </ul>
</template>

<script lang="ts">
export default {
    name:'NewsDetails'
}
</script>

<script setup lang="ts">
import { useRoute } from 'vue-router';
import { toRefs } from 'vue';
/* 接受参数 */
let route = useRoute()
// let { query } = toRefs(route)

</script>